﻿@{ Layout = null; }

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>js方式给Word文档插入水印</title>
</head>
<body>
    <script type="text/javascript">

        function OnPageOfficeCtrlInit() {
            pageofficectrl.CustomToolbar = false; //隐藏自定义工具栏
        }

        function AfterDocumentOpened() {
            pageofficectrl.word.SetWaterMark("水印文字");
        }
    </script>
    <form id="form1" runat="server">
        <div style="width:auto; height: 900px;">
            @Html.Raw(ViewBag.poCtrl)
        </div>
    </form>
</body>
</html>
